How to utilize Canary analysis in other Appications within Spinnaker
Introduction
Canary is a deployment strategy in which a change is partially rolled out, then evaluated against the current deployment (baseline) according to a set guideline. The strategy administrators determine the guidelines that follow a pass/fail response. Canary deployments are used to ensure that the new deployment is within the guidelines at a point in time of the deployment. This check determines if the rest of the deployment can continue. This evaluation uses key metrics chosen when the Canary deployment was configured. For more information about setting up Canary analysis, please visit our Armory Docs page: https://docs.armory.io/armory-enterprise/spinnaker-user-guides/canary/kayenta-canary-use/ However, there may come a time when the Canary Analysis results will be used in other applications in the environment.
Prerequisites
Canary analysis and the Kayenta service will need to be enabled in the Spinnaker environment. The steps to enable it can be found here: https://docs.armory.io/armory-enterprise/spinnaker-user-guides/canary/kayenta-canary-use/)
Instructions
App A
's Canary config will need to be utilized within App B
's canary analysis results.
Enable Canary in App B
(Please note that this may already be available in the Spinnaker application)
- Login to Spinnaker
- Navigate to
Applications
then selectApp B
- Navigate to
Config
on the left pane of the Spinnaker application then, selectFeatures
- Check
Canary
then save changes - On the left pane of the Spinnaker application the
Canary configs
will now be available toApp B
Utilize the Canary Config from App A in a pipeline for App B
- Navigate to a pipeline that needs to utilize the
Canary config
created inApp A
- Select
Configure
the selectAdd stage
- In the
Type
option, chooseCanary analysis
- A configuration section named
Canary Analysis Configuration
will be a part of the configuration of the stage. In theConfig name
, use the drop-down to select the Canary config created in App A.
Please note that while App B can now utilize the application, it will not be able to edit the Canary Config, unless the below changes are made to provide permissions to allow the application to make the edit.
Allow App B to edit the config from App A
Steps
- Login into the Spinnaker account* Navigate to
Applications
then selectApp A
- Navigate to
Canary configs
then select theCanary config
thatApp B
will utilize - Select
JSON
and thenedit
- Navigate to the
Applications
section in the JSON file and addApp B
to the listedApplications
. NowApp B
will be able to edit the Canary config file created inApp A